import { Base } from '../../utils/base.js'

class Register extends Base {
  constructor() {
    super()
  }
  //校验手机号
  checkVerifPhone(parames, callback) {
    let url = "/ddaigo-platform/user/checkAndroidPhone";
    this.commonRequest(url, parames, callback);
  }

  //获取验证码
  sendVerifyCode(parames, callback) {
    let url = "/ddaigo-platform/user/sendVerifyCode";
    this.commonRequest(url, parames, callback);
  }
  
  //注册
  registerUser(parames, callback) {
    let url = "/ddaigo-platform/user/registerAndroidUser";
    this.commonRequest(url, parames, callback);
  }
  
  //注册即登录
  registerUser(parames, callback) {
    let url = "/ddaigo-platform/user/register2Login";
    this.commonRequest(url, parames, callback);
  }

}
module.exports = {
  Register
}